package com.bgs.controller;

import com.bgs.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RequestMapping("ruzhi")
@RestController
public class ruzhiController {
    @Autowired
    private com.bgs.service.ruzhiService ruzhiService;
    @RequestMapping("findAll")
    private List<JoinJob> findAll(){ return ruzhiService.findAll(); }
    @RequestMapping("ruzhi")

    private Boolean ruzhi(@RequestBody JoinJob job){

        return ruzhiService.ruzhi(job);
    }
    @RequestMapping("jiating")
    private Boolean jiating(@RequestBody Family family){ return ruzhiService.jiating(family);}
    @RequestMapping("jiaoyu")
    private Boolean jiaoyu(@RequestBody Experience experience){return ruzhiService.jiaoyu(experience);}
    @RequestMapping("xiangmu")
    private Boolean xiangmu(@RequestBody Project project){return ruzhiService.xiangmu(project);}
    @RequestMapping("jineng")
    private Boolean jineng(@RequestBody Skill skill){return ruzhiService.jineng(skill);}
    @RequestMapping("gongzuo")
    private Boolean gongzuo(@RequestBody Work work){return ruzhiService.gongzuo(work);}
    @RequestMapping("zhengshu")
    private Boolean zhengshu(@RequestBody Certificate certificate){return ruzhiService.zhengshu(certificate);}
}
